package com.cos.shop.service.impl;

import com.cos.shop.dao.ItemDao;
import com.cos.shop.dao.impl.ItemDaoImpl;
import com.cos.shop.entity.vo.ItemVo;
import com.cos.shop.service.ItemServices;

import java.sql.SQLException;
import java.util.List;

/**
 * Copyright (C),2021-2022,亚瑟王
 * FileName: ItemServicesImpl
 * Author: saber
 * Date:2022/9/20 20:29
 */
public class ItemServicesImpl implements ItemServices {
    private ItemDao id = new ItemDaoImpl();

    @Override
    public List<ItemVo> getOrdersDetailByOid(String oid) {
        try {
            List<ItemVo> itemVoList = id.getItemByOid(oid);
            return itemVoList;
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return null;
    }
}
